#include <stdio.h>

int main()
{
        int a, b;
        float x;
        scanf_s("%d,%d", a, b);
        x = 2 *a*b / (a + b)*(a + b);
        printf("x = %d\ n", x);
        return 0;
}
	